package JavaAPI;

public class Example10 {
	public static void main(String[] args) {
		long startTime = System.currentTimeMillis();
		int sum = 0;
		for(int i = 0;i<100000000;i++) {
			sum+=i;
		}
		long endTime = System.currentTimeMillis();
		System.out.println("程序运行的时间为："+(endTime-startTime)+"毫秒");
		
	}

}
